How to write all subset of the following sets